<template>
  <div >
    <h2>复制指令</h2>
    <el-input v-model="data" placeholder="请输入内容" style="width: 500px">
      <template #append>
        <el-button v-copy="data"> 复制 </el-button>
      </template>
    </el-input>
  </div>
</template>

<script setup lang="ts">
const data = ref("");
</script>

<style scoped>
h2 {
  text-align: center;
}
</style>
